package com.google.gwt.homepage.smile.client.event;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.homepage.smile.shared.Contact;
import com.google.gwt.homepage.smile.shared.EnneagramTestResultBean;

public class EnneagramGoResultEvent extends GwtEvent<EnneagramGoResultEventHandler>{
  public static Type<EnneagramGoResultEventHandler> TYPE = new Type<EnneagramGoResultEventHandler>();
  
  private final EnneagramTestResultBean result;
  
  public EnneagramGoResultEvent(EnneagramTestResultBean result) {
    this.result = result;
  }
  
  public EnneagramTestResultBean getResult() { return result; }
  
  @Override
  public Type<EnneagramGoResultEventHandler> getAssociatedType() {
    return TYPE;
  }

  @Override
  protected void dispatch(EnneagramGoResultEventHandler handler) {
    handler.onEnneagramGoResult(this);
  }
}
